﻿<%@ Page Title="" Language="C#" MasterPageFile="~/trangchu.master" AutoEventWireup="true" CodeFile="Dangky.aspx.cs" Inherits="Dangky" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style7
        {
            text-align: right;
            width: 105px;
        }
        .style8
        {
            width: 105px;
        }
        .style9
        {
            color: #0033CC;
            width: 200px;
            height: 30px;
            text-align: left;
            font-size: medium;
            background-color: #FFFFFF;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 100%; height: 325px; margin-right: 0px;" width="596px">
    <tr>
        <td colspan="2" style="text-align: center; font-weight: 700; color: #0000FF">
            Đăng Ký Thành Viên</td>
    </tr>
    <tr>
        <td class="style7">
            Họ và Tên</td>
        <td class="style9">
            <asp:TextBox ID="txtHoten" runat="server" Width="150px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtHoten" ErrorMessage="chưa nhập họ tên" 
                ForeColor="Red">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style7">
            Giới Tính</td>
        <td class="style9">
            <asp:RadioButtonList ID="rdbGioitinh" runat="server" 
                RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="1">Nam</asp:ListItem>
                <asp:ListItem Value="0">Nữ</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td class="style7">
            Địa Chỉ</td>
        <td class="style9">
            <asp:TextBox ID="txtDiaChi" runat="server" Width="150px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style7">
            Điện Thoại</td>
        <td class="style9">
            <asp:TextBox ID="txtDienThoai" runat="server" Width="150px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style7">
            Email</td>
        <td class="style9">
            <asp:TextBox ID="txtEmail" runat="server" Width="150px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="chưa nhập Email" 
                ForeColor="Red">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Nhập Email sai" ForeColor="Red" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="style7">
            Tên Đăng Nhập</td>
        <td class="style9">
            <asp:TextBox ID="txtTenDangNhap" runat="server" Width="150px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ErrorMessage="chưa nhập User name" ForeColor="Red" 
                ControlToValidate="txtTenDangNhap">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style7">
            Mật khẩu</td>
        <td class="style9">
            <asp:TextBox ID="txtMk" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ErrorMessage="chưa nhập mật khẩu" ForeColor="Red" 
                ControlToValidate="txtMk">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style7">
            Nhập Lại Mật Khẩu</td>
        <td class="style9">
            <asp:TextBox ID="txtNhapLaiMK" runat="server" Width="150px" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtNhapLaiMK" ErrorMessage="chưa nhập lại mật khẩu" 
                ForeColor="Red">*</asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtMk" ControlToValidate="txtNhapLaiMK" ErrorMessage="nhập lại mật khẩu sai" 
                ForeColor="Red">*</asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td class="style8">
            &nbsp;</td>
        <td>
            <asp:Button ID="btDangKy" runat="server" onclick="btDangKy_Click" 
                Text="Đăng Ký" />
&nbsp;&nbsp;
            <asp:Button ID="btHuy" runat="server" onclick="btHuy_Click" Text="Hủy" />
        </td>
    </tr>
    <tr>
        <td class="style3" colspan="2">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" 
                Height="39px" Width="479px" />
            <asp:Label ID="lbThongBao" runat="server" ForeColor="Red"></asp:Label>
        </td>
    </tr>
</table>
</asp:Content>

